package JAVATest;

/**
 * ClassName:Text_010
 * Package:JAVATest
 * Description:
 *
 * @Author:ZhangXin
 * @Create2023/1/12-16:22
 * @Version:v1.0
 */
public class Text_010 {
    public static void main(String[] args) {
        int count = 0;
        for (int i = 101; i <200; i++) {
            boolean flag = true;
            for (int j = 2; j < i; j++) {
                if(i % j == 0){
                    flag = false;
                    break;
                }
            }
            if(flag){
                System.out.println("当前数字"+i+"是素数");
                count++;
            }
        }
        System.out.println("101~200之间一共有"+count+"个素数");
    }
}
